<?php require_once('../../core/import.php');?>
<?php User::Permission('ACCOUNT_LIST_VISITED_UPDATE'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript" src="../../scripts/components/kindeditor/import.kindeditor.js"></script>
    <script type="text/javascript" src="scripts/edit.visited.js"></script>
</head>

<body>
    <form id="Form1" name="Form1" method="post" action="edit.action.visited.php" class="Form">
        <fieldset>
            <legend>客户回访</legend>
            <?php
            	if(!is_numeric($ID=Functions::UrlArgs('id')))
			  {
				  exit('信息ID不正确');
			  }
			$Data=DB::GetRowByID('management_user_visited',$ID);
		?>
            <table width="100%" cellpadding="1" cellspacing="0">
            <tr>
            	<td colspan="3">回访人：<?php echo '<font color="red">'.$Data['User'].'</font>'; ?> 回访用户：<?php echo '<font color="green">'.$Data['Account'].'</font>'; ?>
                  </td>
            </tr>
            <tr>
                <td width="130" height="25" align="left">标题：</td>
                <td width="909" colspan="2">
                	  <input type="hidden" id="ai" name="ai" value="<?php echo $ID ?>" />
                    <input type="hidden" id="Username" name="Username" value="<?php echo $Data['User'] ?>" />
                    <input type="hidden" id="Account" name="Account" value="<?php echo $Data['Account'] ?>" />
                    <input type="text" id="Title" name="Title" maxlength="80" size="60" value="<?php echo $Data['Title']?>" onblur="TitleServer();" class="Textbox" /><font color="red"> *</font> <span id="Title_aj" >&nbsp;</span>
                </td>
            </tr>
            <tr>
                <td width="130" height="25" align="left">回访时间</td>
                <td width="909" colspan="2">
                    <input type="text" id="VisitedTime" name="VisitedTime"  onblur="VisitedTimeServer();" value="<?php echo $Data['Datetime_Visited']?>" class="Textbox" /><font color="red"> *</font> <span id="VisitedTime_aj" >&nbsp;</span>
                </td>
            </tr>
            <tr>
            	<td height="25" align="left" valign="top">回访内容：</td>
            	<td colspan="2"><textarea id="Content" name="Content" style="width:60%; height:300px;"><?php echo $Data['Content']?></textarea></td>
            </tr>
            </table>
        </fieldset>
        <input id="ActionButton" name="ActionButton" type="submit" value="确定" class="button" /> 
        <input type="button" value="返回" onclick="location.href('list.visited.php');" class="button" />
    </form>
</body>
</html>